Repository navigation
feat(studio): collections in the sidebar, list, settings and New collection (RFC-0040 step 3) - #86
Merged
Merged
Conversation
…ection (RFC-0040 step 3) The sidebar lists the registry (declared, inferred from entries, posts) with names in Studio's language, icons (a closed set, lazy-loaded so the first load stays in budget) and counts, then Collections. New routes: /collections (overview + New collection dialog), /collections/$collection (the Articles list, generalised: taxonomy columns only where they apply) and /collections/$collection/settings (names per locale, icon, feed, sitemap, sort, taxonomies; the address links to Site settings). /articles redirects to /collections/posts; the editor's crumb follows the entry's collection. Comments, language review options and the taxonomy dialog read the registry. New lazy message namespace "collections"; drafts for 18 languages (awaiting review). Refs #71 (RFC-0040, ADR-0042) Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Signed-off-by: Madraka <8898640+Madraka@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
RFC-0040 / ADR-0042, step 3 of 4. Stacked on #85, which is stacked on #84.
What changes in Studio
Sidebar › Content: one item per collection in the registry (
GET …/collections: declared, inferred from entries, andposts), with:postsstays "Articles");The registry refreshes after any write to the site, its entries or its collections (
onApiWrite)./collections: a list template with name, address, entries and whether the collection is named. New collection opens a dialog: plural and singular name in the site's default language, a key derived from the name (immutable, which the dialog says), an icon from the closed set, and an address. The API checks for overlaps (409path_conflict)./collections/$collection: the Articles list, generalised;ArticlesPageshrank from 214 to 197 lines.posts, "New entry", "Search entries" and "No entries yet".site:settings./collections/$collection/settings: a settings template with these sections:Taxonomy.collections.Redirects and other screens:
/articlesredirects to/collections/postsand keeps the facets./articles/$entryId, since entry ids are unique and about 20 screens deep-link there; its breadcrumb now leads to the entry's collection.posts.Deviations from the RFC (small)
/articles/$entryIdand does not become/collections/$collection/$entryId.Checks
test/collections.test.ts.collectionsand 6 core keys.i18n:importchecks pass, 27/27.eventsreturned 200;jobsreturned 422collection_undeclared.Refs #71
🤖 Generated with Claude Code